<?php include("inc/global.inc");
include("inc/page.php");
$url="fd_list.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=20;

$pro_rs=mysql_query("select * from city where id=".$_GET['pid']);
$pro_row=mysql_fetch_array($pro_rs);
$pro_rs2=mysql_query("select * from city where id=".$_GET['cid']);
$pro_row2=mysql_fetch_array($pro_rs2);
if(intval($_GET['qid'])>0)
{
	$pro_rs3=mysql_query("select * from city where id=".$_GET['qid']);
	$pro_row3=mysql_fetch_array($pro_rs3);
}
$pid=$_GET[pid]?$_GET[pid]:0;
$cid=$_GET[cid]?$_GET[cid]:0;
$qid=$_GET[qid]?$_GET[qid]:0;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$pro_row2[city_name]?>借贷网-汇集<?=$pro_row2[city_name]?>各行业小额贷款，民间借贷，无抵押贷款，企业借贷，网上借贷服务平台。</title>
<meta name="description" content="<?=$pro_row2[city_name]?>借贷网专注于企业和个人提供 借贷，小额贷款，民间借贷，企业贷款，无抵押贷款，网上贷款 等贷款咨询和企业融资服务平台。" />
<meta name="keywords" content="<?=$pro_row2[city_name]?>借贷，<?=$pro_row2[city_name]?>小额贷款，<?=$pro_row2[city_name]?>民间借贷，<?=$pro_row2[city_name]?>无抵押贷款，<?=$pro_row2[city_name]?>企业贷款，<?=$pro_row2[city_name]?>网上贷款" />
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/css/class.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="top">

<div class="topbox">
<div class="topleft">欢迎来到三帝贸易网&nbsp;<span class="301688"><a href="http://www.301688.com" target="_blank">301688.com</a></span> &nbsp; [<a href="/login/">登陆</a>] [<a href="/join/">免费注册</a>]</div>
<div class="topright"><a href="#" onClick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.sandib2b.cn');">设为首页</a> | <A title="三帝贸易网"  href="#" style="CURSOR: hand" onclick="javascript:window.external.AddFavorite('http://www.sandib2b.cn','三帝贸易网')">添加收藏</A> | <a href="/about">客服中心</a> | <span class="301688"><a href="/tuoguan/" target="_blank">托管保</a></span></div>
<div class="onl"></div>
</div>

</div><div class="top1 topside6">
<div style="float:left;width:255px;"><a href="/"><img src="/images/jdlogo.gif" alt="三帝借贷网" width="245" height="62" border="0" /></a></div>
<div class="menutop"><?=$pro_row2[city_name]?>
</div>
<div class="menubut">
<ul>
<li><a href="/">首页</a></li>
<li><a href="/daikuan.php" class='hover'>贷款</a></li>  
<li><a href="/jiekuan.php">借款</a></li>   
<li><a href="/news.php">资讯</a></li>
</ul>
<div class="onl"></div>
</div>
<div class="onl"></div>
</div>
<div class="menu">
  <div id="search_2">
<li style="padding-top:10px;width:335px;"></li>
</div>
</div>
<div class="city side1">
<?php $c_rs=mysql_query("select * from city where city_id=0 order by order_name asc");
      while($c_row=mysql_fetch_array($c_rs)){
?>
<a href="/jiedai/daikuan-city<?=$c_row[id]?>.html" <?php if($_GET[pid]==$c_row[id]){echo "style='color:red'";}?>><?=$c_row[city_name]?></a>
<?php }?>
<div class="onl"></div>
</div>

<div id="mian" class="topside6">
<div class="title">您所在的位置：<a href="/">首页</a> >> <a href="/daikuan.php">贷款</a> >> <a href="/jiedai/daikuan-city<?=$pro_row[id]?>.html"><?=$pro_row[city_name]?></a> >> <?=$pro_row2[city_name]?></div>
</div>
<div id="mian" class="topside20 downside6 side">
<script type="text/javascript">/*960*90底部，创建于2011-7-6*/ var cpro_id = 'u530503';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F4FCFF" class="side topside6">
  <tr>
    <td height="26" colspan="2">　城市导航：
	<?php $city_rs=mysql_query("select * from city where city_id='$pro_row[id]'");
	while($city_row=mysql_fetch_array($city_rs)){?> <a href="/jiedai/daikuan-city<?=$pro_row[id]?>-c<?=$city_row[id]?>.html" <?php if($_GET[cid]==$city_row[id]){echo "style='color:red'";}?>><?=$city_row[city_name]?></a> <?php }?></td>
  </tr>
  <tr>
    <td width="76" height="26">　地区导航：</td>
    <td width="882"><a href="/jiedai/daikuan-city<?=$_GET[pid]?>-c<?=$cid?>-q0-a0-b0.html">不限</a>
      <?php $city_rs=mysql_query("select * from city where city_id='$pro_row2[id]'");
	while($city_row=mysql_fetch_array($city_rs)){?>
      <a href="/jiedai/daikuan-city<?=$_GET[pid]?>-c<?=$cid?>-q<?=$city_row[id]?>-a0-b0.html" <?php if($_GET[qid]==$city_row[id]){echo "style='color:red'";}?>>
      <?=$city_row[city_name]?>
      </a>
      <?php }?></td>
  </tr>
  <tr>
    <td height="26" colspan="2">　放款对象：
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a0-b<?=$_GET[bid]?>.html">不限</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode("个人")?>-b<?=$_GET[bid]?>.html" <?php if($_GET[aid]=="个人"){echo "style='color:red'";}?>>个人</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode("企业")?>-b<?=$_GET[bid]?>.html" <?php if($_GET[aid]=="企业"){echo "style='color:red'";}?>>企业</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode("个人及企业")?>-b<?=$_GET[bid]?>.html" <?php if($_GET[aid]=="个人及企业"){echo "style='color:red'";}?>>个人及企业</a>	</td>
  </tr>
  <tr>
    <td height="26" colspan="2">　放贷金额：
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a0-b0.html">不限</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b50.html" <?php if($_GET[bid]=="50"){echo "style='color:red'";}?>>50万以下</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b50-100.html" <?php if($_GET[bid]=="50-100"){echo "style='color:red'";}?>>50-100万</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b100-200.html" <?php if($_GET[bid]=="100-200"){echo "style='color:red'";}?>>100-200万</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b200-400.html" <?php if($_GET[bid]=="200-400"){echo "style='color:red'";}?>>200-400万</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b400-600.html" <?php if($_GET[bid]=="400-600"){echo "style='color:red'";}?>>400-600万</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b600-800.html" <?php if($_GET[bid]=="600-800"){echo "style='color:red'";}?>>600-800万</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b800-1000.html" <?php if($_GET[bid]=="800-1000"){echo "style='color:red'";}?>>800-1000万</a> 
	<a href="/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b1000.html" <?php if($_GET[bid]=="1000"){echo "style='color:red'";}?>>1000万以上</a></td>
  </tr>
</table>
<div id="mian" class="topside6">
  <div class="leftmain rightside6">
  <div class="side">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="27" colspan="2" class="title5"><?php if($qid){?><?=$pro_row3[city_name]?><?php }else{?><?=$pro_row2[city_name]?><?php }?>贷款信息列表</td>
      </tr>
	<td width="58%">
  </table>
<?php
if($_GET[qid]){
  $sqls=" and jd_fangdai.fd_diqu_id=".$_GET['qid'];
}
if($_GET[aid]){
  $sqls=$sqls." and jd_fangdai.fd_duixiang=".$_GET['aid'];
}
if($_GET[bid]){
  $sqls=$sqls." and jd_fangdai.fd_jiner=".$_GET['bid'];
}


$rs=mysql_query("select jd_fangdai.id,jd_fangdai.fd_title,jd_fangdai.fd_jiner,jd_fangdai.fd_lilv,jd_fangdai.fd_duixiang,jd_fangdai.fd_shenpi,jd_fangdai.fd_city,jd_fangdai.fd_danbao,member.m_cname,member.m_type,member.c_type from jd_fangdai inner join member on (jd_fangdai.member_id=member.id) where jd_fangdai.fd_sh=1 and jd_fangdai.fd_city_id='$cid' ".$sqls." order by jd_fangdai.id desc limit ".($thepage-1)*$maxpage.",$maxpage");
$i=1;
while($row=mysql_fetch_array($rs)){
$color=($i%2)?"#FAFAFA":"#FFFFFF";
?>
<table width="690" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor=<?=$color?>>
    <tr>
      <td height="31" colspan="4" width="690"><h3 class="size14"><a href="#"><a href="/jiedai/daikuan-<?=$row['id']?>.html" target="_blank">
        <?=$row[fd_title]?>
      </a></h3></td>
    </tr>
	<?php $fd_lilv=explode("%",$row[fd_lilv]);?>
    <tr>
      <td height="11">放贷金额：<strong>
        <?=$row[fd_jiner]?>
        <?php if($row[fd_jiner]=="50"){echo "万以下";}elseif($row[fd_jiner]=="1000"){echo "万以上";}else{echo "万";}?>
      </strong></td>
      <td>利 率：<strong>
        <?php if($fd_lilv[0]==0){echo "商谈";}else{echo $row[fd_lilv];}?>
      </strong></td>
      <td>放贷对象：<strong>
        <?=$row[fd_duixiang]?>
      </strong></td>
      <td><?php if($row[m_type]==6){?>
        <img src="/images/member.gif" border="0" align="absmiddle" />
        <?php }?></td>
    </tr>
    <tr>
      <td height="12">审批时间：<strong>
        <?=$row[fd_shenpi]?>
        天</strong></td>
      <td>机构类型：<strong>
        <?=$row[c_type]?>
      </strong></td>
      <td>放贷城市：<strong>
        <?=$row[fd_city]?>
      </strong></td>
      <td align="center"><span class="div"><a href="/jiedai/daikuan-<?=$row['id']?>.html" target="_blank"><img src="/images/xiangxi.gif" alt="查看详细" width="73" height="22" border="0" /></a></span></td>
    </tr>
    <tr>
      <td colspan="4">担保方式：
        <?=$row["fd_danbao"]?></td>
    </tr>
  </table>
  <table width="690" border="0" align="center" cellpadding="0" cellspacing="5">
    <tr>
      <td height="1" bgcolor="#E7E7E7"></td>
    </tr>
  </table>
<?php $i++;}
if($_GET[qid]){
  $sqls2=" and fd_diqu_id='$_GET[qid]'";
}
if($_GET[aid]){
  $sqls2=$sqls2." and fd_duixiang='$_GET[aid]'";
}
if($_GET[fd_jiner]){
  $sqls2=$sqls2." and fd_jiner='$_GET[bid]'";
}

$rs2=mysql_query("select count(id) from jd_fangdai where fd_sh=1 and fd_city_id='$cid'".$sqls2);
$totalrecord=mysql_result($rs2,0);
mysql_free_result($rs2);
$totalpage=ceil($totalrecord/$maxpage);
?>  
  
  <!--page-->
<div class="page">
<div class="pageleft">
<ul>

<?php fdpages($thepage,$totalpage,$maxpage,4);?>

</ul>
</div>
<div class="pageright">
  <form name="pageform" method="post" action="" onSubmit="return onCheckPage()">
  共<?=$totalpage?>页　到 <input type="text" name="page" class="input-txt" size="5" maxlength="5">
  页<input type="submit" name="Submit" value="确定" class="but">
  </form>
<script language="javascript"> 
function onCheckPage(){
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){
alert("请输入数字(1,<?=$totalpage?>)");
return false; 
}
if(page<=0){
page =1; 
}
if(page ><?=$totalpage?>){
page=<?=$totalpage?>;
}
if(page>1){
document.pageform.action = "/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b<?=$_GET[bid]?>-p"+page+".html"; 
}else{
document.pageform.action = "/jiedai/daikuan-city<?=$pid?>-c<?=$cid?>-q<?=$qid?>-a<?=urlencode($_GET[aid])?>-b<?=$_GET[bid]?>-p1.html"; 
}
return true;
}
</script>
  </div>
<div class="onl"></div>
</div>
<!--page end-->
  </div>

  </div>
  <div class="rightmain">
  <div><a href="http://www.sandib2b.cn/login/" target="_blank"><img src="/images/main_01.gif" width="254" height="61" border="0" /></a><a href="/jd_post.php" target="_blank"><img src="/images/main_02.gif" width="254" height="61" border="0" /></a></div>
  <br />
<div class="side1 topside6">
<div class="title5 size14"><span><a href="/news.php">>>更多</a></span>资讯</div>
<dl sizcache="16" sizset="76">
<?php 
$rs=mysql_query("select * from news where type_id=87 and n_sh=1 order by id desc limit 10");
while($row=mysql_fetch_array($rs)){
?>   
 <dt sizcache="16" sizset="76"><span><?=date("m-d",strtotime($row[news_time]))?></span>·<a href="/jiedai/<?=date("Y-m-d",strtotime($row[news_time]))?>/<?=$row['id']?>.html" target="_blank"><?=mb_substr($row[news_title],0,14,'utf-8')?></a></dt>
<?php }?>
</dl>
  </div>
  <br />
<script type="text/javascript">/*250*250，借贷-创建于2011-11-9*/ var cpro_id = 'u672457';</script><script 

src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
  </div>
  <div class="onl"></div>
</div>
<div id="mian" class="topside20 downside6 side">
<script type="text/javascript">/*960*90底部，创建于2011-7-6*/ var cpro_id = 'u530503';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<br />
<?php include("inc/foot.php");?>
</body>
</html>
<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>